<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<div class="pageContent">
	<form method="post" id="form" enctype="multipart/form-data" action="${pageContext.request.contextPath}/investment/handover/review" class="pageForm required-validate">
		<div class="pageFormContent" layoutH="56">
			<!-- 关闭窗口 -->
			<input type="hidden" name="callbackType" value="closeCurrent" />
			<!-- 隐藏表单 -->

			<c:if test="${requestScope.record !=null}">

				<input type="hidden" name="id" value="${requestScope.record.id}" />

			</c:if>
			<p>
				<label>招商信息</label> <select disabled="disabled">
					<option value="">请选择</option>
					<c:forEach items="${requestScope.investments}" var="item">
						<option value="${item.id }" ${requestScope.record.imfid==item.id ?'selected':''}>${item.name }</option>
					</c:forEach>
				</select>
			</p>
			<p>
				<label>业主姓名</label> <input readonly="readonly" class="required" maxlength="20" type="text" value="${requestScope.record.name}" />
			</p>
			<p>
				<label>年龄</label> <input readonly="readonly" class="required digits" maxlength="11" type="text" value="${requestScope.record.age}" />
			</p>
			<p>
				<label>业主性格</label> <input readonly="readonly" class="required" maxlength="50" type="text" value="${requestScope.record.cacr}" />
			</p>
			<p>
				<label>业主职业</label> <input readonly="readonly" class="required" maxlength="50" type="text" value="${requestScope.record.carr}" />
			</p>
			<p>
				<label>联系电话</label> <input readonly="readonly" class="required" maxlength="11" type="text" value="${requestScope.record.phone}" />
			</p>
			<p>
				<label>QQ</label> <input readonly="readonly" class="required" maxlength="11" type="text" value="${requestScope.record.qq}" />
			</p>
			<p>
				<label>签约时间</label> <input class="required" readonly="readonly" type="text" value="<fmt:formatDate value='${requestScope.record.sgtm}' pattern='yyyy-MM-dd' />" /><a class="inputDateButton" href="javascript:;">选择</a>
			</p>
			<p>
				<label>经营方式</label> <input readonly="readonly" class="required" maxlength="50" type="text" value="${requestScope.record.optw}" />
			</p>
			<p>
				<label>店铺级别</label> <input readonly="readonly" class="required" maxlength="50" type="text" value="${requestScope.record.stle}" />
			</p>
			<p>
				<label>是否有店铺</label> ${requestScope.record.issp==0?'否':''}${requestScope.record.issp==1?'是':''}
			</p>
			<p>
				<label>客户来源</label> <input readonly="readonly" class="required" maxlength="100" type="text" value="${requestScope.record.source}" />
			</p>
			<p>
				<label>店铺面积</label> <input readonly="readonly" class="required number" maxlength="11" type="text" value="${requestScope.record.ftae*0.01}" />
			</p>
			<p>
				<label>有无图纸</label> ${requestScope.record.isdw==0?'无':''} ${requestScope.record.isdw==1?'有':''}
			</p>
			<p>
				<label>图纸设计日期</label> <input readonly="readonly" class="required" readonly="readonly" type="text" value="<fmt:formatDate value='${requestScope.record.dstm}' pattern='yyyy-MM-dd' />" /><a class="inputDateButton" href="javascript:;">选择</a>
			</p>
			<p>
				<label>预计开业时间</label> <input readonly="readonly" class="required" readonly="readonly" type="text" value="<fmt:formatDate value='${requestScope.record.eptm}' pattern='yyyy-MM-dd' />" /><a class="inputDateButton" href="javascript:;">选择</a>
			</p>
			<p class="nowrap">
				<label>地址（省&市/区）</label> <input type="hidden" value="${requestScope.record.areaName}" /> <select class="required" disabled="disabled" name="areaCode" id="investment_combox_province" ref="investment_combox_city" refUrl="${pageContext.request.contextPath}/system/areas/getCityByProvince?id={value}" default-value="110000">
					<c:if test="${requestScope.province==null}">
						<option value="">请选择省份</option>
					</c:if>
					<c:forEach items="${requestScope.provinces}" var="item">
						<option value="${item.id}" ${item.id==requestScope.province?"selected":""}>${item.name}</option>
					</c:forEach>
				</select> <select class="required" disabled="disabled" id="investment_combox_city" ref="investment_combox_region" refUrl="${pageContext.request.contextPath}/system/areas/getCountyByAreas?id={value}" default-value="110100">
					<c:if test="${requestScope.city==null}">
						<option value="">请选择城市</option>
					</c:if>
					<c:forEach items="${requestScope.citys}" var="item">
						<option value="${item.id}" ${item.id==requestScope.city?"selected":""}>${item.name}</option>
					</c:forEach>
				</select> <select class="required" disabled="disabled" id="investment_combox_region" default-value="110100">
					<c:if test="${requestScope.county==null}">
						<option value="">请选择市区</option>
					</c:if>
					<c:forEach items="${requestScope.countys}" var="item">
						<option value="${item.id}" ${item.id==requestScope.county?"selected":""}>${item.name}</option>
					</c:forEach>
				</select>
			</p>
			<p>
				<label>地址</label> <input readonly="readonly" class="required" maxlength="100" type="text" value="${requestScope.record.addr}" />
			</p>
			<p>
				<label>招商经理</label>
				<%-- <input name="imid" class="required" maxlength="50" type="text" value="${requestScope.record.imid}" />  --%>
				<select disabled="disabled">
					<option value="">请选择</option>
					<c:forEach items="${requestScope.imidlist}" var="item">
						<option value="${item.employeeId }" ${requestScope.record.imid==item.employeeId ?'selected':''}>${item.employeeName }</option>
					</c:forEach>
				</select>
			</p>
			<p>
				<label>区域经理</label>
				<%-- <input name="rgid" class="required" maxlength="50" type="text" value="${requestScope.record.rgid}" /> --%>
				<select disabled="disabled">
					<option value="">请选择</option>
					<c:forEach items="${requestScope.rgidlist}" var="item">
						<option value="${item.employeeId }" ${requestScope.record.rgid==item.employeeId?'selected':''}>${item.employeeName }</option>
					</c:forEach>
				</select>
			</p>
			<p>
				<label>运营督导</label>
				<%-- <input name="opid" class="required" maxlength="50" type="text" value="${requestScope.record.opid}" /> --%>
				<select disabled="disabled">
					<option value="">请选择</option>
					<c:forEach items="${requestScope.opidlist}" var="item">
						<option value="${item.employeeId }" ${requestScope.record.opid==item.employeeId?'selected':''}>${item.employeeName }</option>
					</c:forEach>
				</select>
			</p>
			<p>
				<label>合同编号</label> <input readonly="readonly" class="required" maxlength="50" type="text" value="${requestScope.record.ctno}" />
			</p>
			<p>
				<label>保证金</label> <input readonly="readonly" class="required number" maxlength="11" type="text" value="${requestScope.record.mrgn*0.01}" />
			</p>
			<p>
				<label>报销费用</label> <input readonly="readonly" class="required number " maxlength="11" type="text" value="${requestScope.record.rbmt*0.01}" />
			</p>
			<p>
				<label>管理费</label> <input readonly="readonly" class="required number" maxlength="11" type="text" value="${requestScope.record.mgmt*0.01}" />
			</p>
			<p class="nowrap">
				<label>附件</label>
				<%-- <input name="anex" class="required" maxlength="500" type="text" value="${requestScope.record.anex}" /> --%>
				<a href="${pageContext.request.contextPath }/${requestScope.record.anex}">附件下载</a>
			</p>
			<p class="nowrap">
				<label>客户说明</label>
				<textarea readonly="readonly" cols="150" class="required" maxlength="200">${requestScope.record.eptn}</textarea>
			</p>

			<p class="nowrap">
				<label>人员下派问题</label>
				<textarea readonly="readonly" cols="150" class="required" maxlength="200">${requestScope.record.sdpb}</textarea>
			</p>
			<p class="nowrap">
				<label>进货返点服务</label>
				<textarea readonly="readonly" cols="150" class="required" maxlength="200">${requestScope.record.icrs}</textarea>
			</p>
			<p class="nowrap">
				<label>运费承担问题</label>
				<textarea readonly="readonly" cols="150" class="required" maxlength="200">${requestScope.record.fipb}</textarea>
			</p>
			<p class="nowrap">
				<label>星配调换问题</label>
				<textarea readonly="readonly" cols="150" class="required" maxlength="200">${requestScope.record.mcpb}</textarea>
			</p>
			<p class="nowrap">
				<label>人员培训问题</label>
				<textarea readonly="readonly" cols="150" class="required" maxlength="200">${requestScope.record.tapb}</textarea>
			</p>
			<p class="nowrap">
				<label>招商促销方案</label>
				<textarea readonly="readonly" cols="150" class="required" maxlength="200">${requestScope.record.pmtn}</textarea>
			</p>
			<p class="nowrap">
				<label>合作协议</label>
				<textarea readonly="readonly" cols="150" class="required" maxlength="500">${requestScope.record.cpam}</textarea>
			</p>
			<%-- <p>
				<label>状态：1-申请移交、2-移交通过、3-移交不通过</label> <input name="state" class="required" maxlength="11" type="text" value="${requestScope.record.state}" />
			</p> --%>
			
			<p class="nowrap">
				<label>审核备注</label>
				<textarea name="rvrm" cols="150" class="required" maxlength="200"></textarea>
			</p>
		</div>

		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button class="review" data-val="2" type="button">通过</button>
						</div>
					</div></li>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button class="review" data-val="3" type="button">不通过</button>
						</div>
					</div></li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>
<script type="text/javascript">
	$(".review").click(function() {
		//状态：1-申请移交、2-移交通过、3-移交不通过
		var state = $(this).data("val");
		var form = $("#form", $.pdialog.getCurrent());
		form.append("<input type='hidden' name='state' value='"+state+"' />");
		return validateCallback(form, dialogAjaxDone);
	});
</script>